package labox.innovation.gameserver.skills.conditions;

import labox.innovation.gameserver.model.actor.instance.FuzePcInstance;
import labox.innovation.gameserver.skills.Env;

public class ConditionPlayerIsClanLeader extends Condition {
	private final boolean _val;

	public ConditionPlayerIsClanLeader(boolean val) {
		_val = val;
	}

	@Override
	public boolean testImpl(Env env) {
		if (!(env.player instanceof FuzePcInstance))
			return false;
		return (((FuzePcInstance) env.player).isClanLeader() == _val);
	}
}
